/**
 * 
 */
package server;

/**
 * @author Machado
 *
 */
public class IdDeleter implements Runnable {
	
	private IdList list;
	
	public IdDeleter(IdList list){
		System.out.println("New deleter set.");
		this.list = list;
	}
	
	/* (non-Javadoc)
	 * @see java.lang.Runnable#run()
	 */
	@Override
	public void run() {
		try {
			
			Thread.sleep(2000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		System.out.println("Deleting an id");
		list.remove(0);		
	}

}
